﻿#include "testwidget.h"
#include <QResizeEvent>
#include <QDebug>

TestWidget::TestWidget(QWidget* parent)
    : QWidget(parent)
{
    setMinimumSize(800, 600);
    timeLine_.reset(new VideoTime(this));
    timeLine_->setMinimumWidth(this->minimumWidth());
    timeLine_->setMinimumHeight(35);
    setAttribute(Qt::WA_Hover,true);
}

void TestWidget::resizeEvent(QResizeEvent *event)
{
    qDebug() << "resize";
    timeLine_->resize(event->size().width(), timeLine_->height());
    timeLine_->update();
}
